package com.jprocms.module.cms.api;

import com.jpro.framework.common.pojo.CommonResult;
import com.jprocms.module.cms.api.vo.BpmDeployReqVO;
import com.jprocms.module.cms.enums.ApiConstants;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 栏目管理 Api 接口
 *
 * @author jprocms
 */
@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 栏目管理")
public interface ChannelApi {

    /**
     * 更新审核结果（提供给外部）
     *
     * @param id 内容ID
     * @return 更新结果是否成功
     */
    String PREFIX = ApiConstants.PREFIX + "/channel";

    @PostMapping(PREFIX + "/updateChannelWorkflowDefinitionId")
    CommonResult<Boolean> updateChannelWorkflowDefinitionId(@RequestBody  BpmDeployReqVO bpmDeployMessage);

}
